Repository navigation
feat(settings): set the locale on iOS simulators and Android - #5050
Conversation
|
Thanks for adding locale and time zone settings for local simulators and emulators. The code at d6d508a has no blocking problems, but the change is not ready to merge because the new device paths have no recorded evidence. This is a device-facing change, and CI smoke does not run these paths. The PR body describes live runs only as prose. Before merge, please attach JSON output from a local iOS simulator and an Android emulator for Not blocking, and you can take or leave these: (1) parseTimeZoneId fixes casing only for names that CI is likely unrelated to this change. Smoke Tests (ios) failed in smoke:automation-input at Not verified here: any device run, the iOS reset result, Android applying the locale at once, TZ inheritance by apps launched from SpringBoard, and the case-sensitivity of Before merge, please attach the live iOS and Android output above and re-run the iOS smoke job until |
d6d508a to
2f72203
Compare
|
All six notes are handled in 2f72203:
Android emulator (Pixel 9, API 36), at 2f72203: settings locale / timezone JSON, getprop, and the helper's current= lineiOS simulator (iPhone 17 Pro, iOS 27.2), at 2f72203: settings locale / timezone JSON |
|
Thanks for the update. The code in 2f72203 is fine, and the earlier evidence request is now met by the pasted live output for the locale and time zone settings. Repo Guards & Compatibility failed in the check-affected SIGTERM test (scripts/check-affected/command-execution.test.ts, Unexpected end of JSON input), which looks unrelated because this diff touches no scripts or check-affected code. Body rules was cancelled by a newer run. Not verified here: the live transcript on a device, iOS time zone persistence across a simulator reboot, time zone inheritance by apps launched from SpringBoard, and the focused tests and mutation claims. Before merge, re-run Repo Guards & Compatibility and Body rules until both are green. |
2f72203 to
95a1522
Compare
|
Rebased onto main at 63fe1b6 (after #4290); the head is now 95a1522. Both features are kept:
On a Pixel 9 emulator (API 36) at 95a1522: |
|
Thanks for the update. The earlier conflict from 2f72203 is resolved, and the locale and time zone changes at 95a1522 have no problems found in review. The Pixel 9 run at this commit is the author's pasted output, and the iOS patch is unchanged from the version reviewed earlier, so its earlier evidence still applies. Not verified here: the docs generator and the tests were not run, so generated-doc parity and test results rest on reading the head files and on the 16 passing checks. The only check not passing is Body rules, which was cancelled when a newer run replaced it. It validates the PR body and metadata, not any route this diff changes. No conflicts remain. Before merge, the cancelled Body rules check needs a green re-run. |
|
Thanks for the settings work. The catalog
|
|
This branch now conflicts with main. Please rebase onto current main together with the requested changes above. |
95a1522 to
165f7af
Compare
|
Updated per review:
|
|
Thanks for the rework. The code at 165f7af has no blocking problems. The conflict reported at 95a1522 is resolved, and no conflicts are known now. CI shows 16 passing checks. The only check not passing is Body rules, which was cancelled by a newer run and is likely unrelated: it validates the PR body and metadata, and the diff changes no route it exercises. Before merge, a maintainer needs to decide on running a helper-APK class through |
|
This branch now conflicts with main. Please rebase onto current main; the next review only checks that the rebase keeps the reviewed change intact. |
165f7af to
489d001
Compare
|
Rebased onto
Rerun at |
|
Thanks for the rebase. The code at 489d001 has no blocking problems, and the reviewed locale code is unchanged. CI is green, with all 17 checks passing. |
Summary
Refs #5005.
settings timezonemoved to #5127; this PR coverssettings localeonly.Adds
settings locale <locale-id|reset>for iPhone and iPad simulators and Android devices and emulators, using thevaluesettings catalog form. Locale ids accept-or_in any casing, normalize to BCP 47 tags (en-IN,zh-Hans-CN), refuse extensions and variants before dispatch, and refuse--appwithsetting_app_not_consumed. Each response reportspreviousLocale.AppleLanguagesandAppleLocalein the global domain viasimctl spawn defaults. Running apps adopt the new locale on relaunch.SystemLocaleCommandto the snapshot helper APK and runs it throughapp_processas the shell user soIActivityManager.updatePersistentConfigurationupdates running apps and persists across reboots.resetappliesro.product.locale.UNSUPPORTED_OPERATION.Before / after
Validation
3e0814c574, head489d001e08, rebased after feat(settings): set the time zone on iOS simulators and Android #5127 merged.en_INandresetverified withgetprop persist.sys.locale;settings timezonestill round-trips.en_INandresetverified withdefaults read -g AppleLocaleandAppleLanguages;settings timezonestill round-trips.489d001e08:format,lint,typecheck,layering,fallow,native-dupes,build,provider-integration(324 passed),command-docs,docs-links, anddocs-prosepassed. Invitest-related, 4 provider-scenario tests timed out under host load; they pass inprovider-integration.